<?php
if(!defined('IN_XLR')) {
	exit('Access Denied');
}

//用户详情
function api_member_profile($apiReq){
	global $_SGLOBAL, $_CONFIG;

	if(!isset($apiReq["id"])){
	     $apiOut["returncode"] = "2000";
	     return $apiOut;
	}

	$mid = $_GET["id"];
	$sql = "select a.* from member a where a.id='$mid'";
 	$member = get_db()->get_row($sql);
 	if(!$member){
         $apiOut["returncode"] = "2001";
	     return $apiOut;
 	}

	//输出
	$apiOut["returncode"] = "0";
	$apiOut["member"] = $member;
	$apiOut["relationship"] = "0";

  
	return $apiOut;
}
